public class Test {
    public static void main(String[] args) {
        Date date1 = new Date();
        //date1.year = 2024;
        date1.setYear(2025);
        date1.month = 9;
        date1.day = 15;
        date1.printDate();
        System.out.println(date1.getYear());

        Date date2 = new Date(2024,9,15);
        date2.printDate();

    }
}
